package com.tool.minio.service.impl;

import com.tool.minio.entity.Media;
import com.tool.minio.mapper.MediaMapper;
import com.tool.minio.service.MediaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 酒徒
 * @Version 1.0
 * @data 2025/6/19 15:18
 */
@Service
public class MediaServiceImpl implements MediaService {
    @Autowired
    private MediaMapper mediaMapper;

    @Override
    public List<Media> findAllMedia(String type) {
        return mediaMapper.findAllMedia(type);
    }

    @Override
    public void save(Media media) {
        mediaMapper.save(media);
    }
}
